/**
 * Copyright(c) 2025 hbswxx.com, All Rights Reserved. Author: kouqiang Create date: 2025/6/4
 */
package cn.sw.syncdata.entity;

import lombok.Data;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * description: 设备监控日志
 *
 * @author kouqiang
 * @date 2025/6/4 16:14
 */
@Data
public class EquipmentsMonitoringLog {
    private int id;
    private String equipmentsIndexcode;
    private LocalDateTime datetimeLogtime;
    DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy HH:mm:ss");
    /**
     * description: 0掉线 1正常 2挂起 3异常
     * @author kouqiang
     * @date 2025/6/4 16:15
     * @param null
     * @return: null
     */
    private int onlinestatus;
    @Override
    public String toString() {
        return equipmentsIndexcode+","+formatter.format(datetimeLogtime)+","+onlinestatus;
    }
}
